<div class="block" id="block-text">
      <div class="secondary-navigation">
        <ul>
          <li class="active first"><a href="#block-products">最新产品列表</a></li>
          <li><a href="#block-users">最新用户注册</a></li>
          
        </ul>
        <div class="clear"></div>
      </div>

      <div class="content">
        <h2 class="title">最新商品</h2>
        <div class="inner">
            <%=render :partial => "/shared/products" , :locals =>{:products =>@products}%>
<div style="clear:both"></div>
        </div>
      </div>
           <hr/>
      
    </div>
<div class="block" id="block-users">
      <div class="secondary-navigation">
        <ul>
          <li><a href="#block-text">最新产品列表</a></li>
          <li  class="active first"><a href="#block-users">最新注册商户</a></li>
          
        </ul>
        <div class="clear"></div>
      </div>

      <div class="content">
        <h2 class="title">最新用户</h2>
        <div class="inner">
<% @users.each_with_index  do|u,index| %>
  <div class="pic">
    <%= link_to image_tag(u.image.url ,:size=>"120x90") , user_path(u.id.to_s + "-" + to_seo(u.name))%><br />
    <%= u.name %><br />
    <%= u.nickname %><br />
  </div>
<%end%>
<br/>
<div style="clear:both"></div>
        </div>
      </div>
           <hr/>
    </div>
